package com.njtoyo.taxi.admin.rest.wrapper.marketing.coupon;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@ApiModel("发券")
public class CreateWrapper {

    @NotNull(message = "乘客id集合不能为空")
    @Size(min = 1, max = 5000, message = "乘客id集合，最多5000")
    @ApiModelProperty("乘客id集合，最多5000")
    private List<Long> customers;

    @NotNull(message = "优惠券集合不能为空")
    @ApiModelProperty("优惠券集合")
    private List<CreateCouponWrapper> coupons;

    private String activeKey;

}